[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
delete $ASSOC{KEY}
Deletes the specified value from the specified asso-
ciative array. Returns the deleted value, or the
undefined value if nothing was deleted. Deleting
from $ENV{} modifies the environment. Deleting from
an array bound to a dbm file deletes the entry from
the dbm file.
The following deletes all the values of an associa-
tive array:
foreach $key (keys %ARRAY) {
delete $ARRAY{$key};
}
(But it would be faster to use the reset command.
Saying undef %ARRAY is faster yet.)
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson